home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / dvlprstc.hqx / Developer Stack 1.3r / card_4015.txt < prev    next >
Encoding:
Text File  |  1991-04-30  |  1.5 KB  |  79 lines

  1. -- card: 4015 from stack: in.3r
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 3837
  5. -- name: FileName
  6. ----- HyperTalk script -----
  7. on closecard
  8.   hide message window
  9. end closecard
  10.  
  11.  
  12.  
  13. -- part 10 (button)
  14. -- low flags: 00
  15. -- high flags: A004
  16. -- rect: left=208 top=233 right=282 bottom=270
  17. -- title width / last selected line: 0
  18. -- icon id / first selected line: 27056 / 27056
  19. -- text alignment: 1
  20. -- font id: 0
  21. -- text size: 12
  22. -- style flags: 0
  23. -- line height: 16
  24. -- part name: Try it
  25. ----- HyperTalk script -----
  26. on mouseUp
  27.   if the optionkey is down then pass mouseup
  28.   put "Just select a file & it will return the full pathname"
  29.   put filename()
  30. end mouseUp
  31.  
  32.  
  33.  
  34. -- part contents for background part 6
  35. ----- text -----
  36.  
  37. This allows your HyperTalk scripts to request a filename via a Standard File Package dialog box.
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. Thanks to:
  47. Steve Maller, Apple Computer.
  48. AppleLink: maller1 ΓÇó Delphi: stevemaller ΓÇó MCI Mail: smaller
  49.  
  50.  
  51. -- part contents for background part 5
  52. ----- text -----
  53. FileName
  54.  
  55. -- part contents for background part 10
  56. ----- text -----
  57. 1
  58.  
  59. -- part contents for background part 7
  60. ----- text -----
  61. Syntax:
  62.  
  63. FileName([<fileType>])
  64.  
  65. Returns the full path name of the file selected.
  66.  
  67. <"fileType"> is the 4 character type of the file you want to open.  If no type is specified, all files are shown.
  68.  
  69. For example:
  70. FileName("APPL") will show only applications
  71.  
  72. FileName("STAK") will show only stacks.
  73.  
  74. FileName("TEXT") will show only text documents.
  75.  
  76.  
  77. -- part contents for background part 27
  78. ----- text -----
  79. XFCN